package com.example.literj.kt.internal.operators.single

import com.example.literj.kt.core.Single
import com.example.literj.kt.core.SingleObserver
import com.example.literj.kt.disposables.Disposable

class SingleJust<T>(private val value: T) : Single<T>() {
    override fun subscribeActual(observer: SingleObserver<in T>) {
        observer.onSubscribe(Disposable.disposed())
        observer.onSuccess(value)
    }
}